<?php

/**
 * Created by PhpStorm.
 * User: li
 * Date: 15-11-4
 * Time: 下午3:03
 */
class Test extends MY_View_Controller
{
    function __construct(){
        parent::__construct();
    }

    function index(){
         var_dump(FCPATH);
         $this->load->library('mongo_db');
         var_dump($this->mongo_db);
        //$this->load->config('recommend');
        //$func_config = $this->config->item('func');
        //$source_config = $this->config->item('source');
        //var_dump($source_config['s1']);
        //var_dump($func_config);
        //$this->display();
    }

    function t1(){
        echo  '<pre>';
        $this->load->model('activities/Activities_model');
        var_dump($this->Activities_model->sold_increment(1));
        exit();
    }

    function t2(){
        $value =  'a:4:{s:7:"user_id";s:5:"10005";s:3:"key";s:16:"c7b50adce151d781";s:6:"device";s:3:"ios";s:9:"device_id";s:12:"dasdsadsadas1";}';
        $this->load->helper('cookie');
        set_cookie('2222',$value,5356800);
    }
}